//
//  YLRegularFinancingItemCell.m
//  YLFinanceService
//
//  Created by she1323 on 2017/9/13.
//  Copyright © 2017年 she1323. All rights reserved.
//

#import "YLRegularFinancingItemCell.h"
#import "YLGlobeHeader.h"
#import "YLRegularFinancingDetailModel.h"
@interface YLRegularFinancingItemCell ()
// 投资金额
@property (weak, nonatomic) IBOutlet UILabel *principalLabel;

// 收益
@property (weak, nonatomic) IBOutlet UILabel *profitLabel;

@end


@implementation YLRegularFinancingItemCell

- (void)setModel:(YLRegularFinancingDetailModel *)model
{
    _model = model;
    _principalLabel.text = [NSString stringWithFormat:@"%.2f", model.investmentAmount];
    _profitLabel.text = [NSString stringWithFormat:@"%.2f", model.incomeAmount];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    _principalLabel.textColor = _profitLabel.textColor = YLMainColor;
    // Initialization code
}

+ (NSString *)cellID
{
    return @"YLRegularFinancingItemCell";
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
